﻿//-----------------------------------------------------------------------
// <copyright file="UserOperateLogFactory.cs" company="Huirui">
//     Copyright Huirui. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Huirui.Cavan.Domain.MainBoundedContext.LogModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;

    public static class UserOperateLogFactory
    {
        public static UserOperateLog CreateUserOperateLog(
                                        UserAccount logOperator,
                                        int operateType,
                                        string description,
                                        DateTime editTime,
                                        int editUser)
        {
            UserOperateLog userOperateLog = new UserOperateLog();
            userOperateLog.Description = description;
            userOperateLog.ModifyDate = editTime;
            userOperateLog.EditUser = editUser;
            userOperateLog.LogOperator = logOperator;
            userOperateLog.OperateType = operateType;
            userOperateLog.CreateDate = DateTime.Now;

            return userOperateLog;
        }
    }
}
